import QtQuick 2.0

Item {
    id: base
    opacity: 0.0
    property bool running: false
    Behavior on opacity {
        NumberAnimation { duration: 500; easing.type: Easing.InExpo}
    }
    onRunningChanged: {
        if (base.running === false)
            base.opacity = 0.0
        else
            base.opacity = 1.0
    }
}
